package com.testmall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
  * @Description: 
  * @Author: littleDesire
  * @Date: 2022-06-21 14:29
  * @Version: 1.0
  * 
  */
@ApiModel(value="com-testmall-entity-Payinfo")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "payinfo")
public class Payinfo implements Serializable {
    @TableId(value = "payid", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private String payid;

    /**
     * 订单id
     */
    @TableField(value = "orderid")
    @ApiModelProperty(value="订单id")
    private String orderid;

    /**
     * 用户表id
     */
    @TableField(value = "userid")
    @ApiModelProperty(value="用户表id")
    private String userid;

    /**
     * 支付平台:1-支付宝,2-微信
     */
    @TableField(value = "payplatform")
    @ApiModelProperty(value="支付平台:1-支付宝,2-微信")
    private Integer payplatform;

    /**
     * 支付流水号
     */
    @TableField(value = "platformnumber")
    @ApiModelProperty(value="支付流水号")
    private String platformnumber;

    /**
     * 支付状态
     */
    @TableField(value = "platformstatus")
    @ApiModelProperty(value="支付状态")
    private String platformstatus;

    /**
     * 创建时间
     */
    @TableField(value = "createtime")
    @ApiModelProperty(value="创建时间")
    private Date createtime;

    /**
     * 更新时间
     */
    @TableField(value = "updatetime")
    @ApiModelProperty(value="更新时间")
    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public static final String COL_PAYID = "payid";

    public static final String COL_ORDERID = "orderid";

    public static final String COL_USERID = "userid";

    public static final String COL_PAYPLATFORM = "payplatform";

    public static final String COL_PLATFORMNUMBER = "platformnumber";

    public static final String COL_PLATFORMSTATUS = "platformstatus";

    public static final String COL_CREATETIME = "createtime";

    public static final String COL_UPDATETIME = "updatetime";
}